package in.smartbillpay.web.dao;

import in.smartbillpay.web.models.City;
import in.smartbillpay.web.models.District;
import in.smartbillpay.web.models.State;
import java.util.List;

public interface LocationDao {

	public abstract City getCityById(int id);
	public abstract District getDistrictById(int id);
	public abstract State getStateById(int id);
	
	public abstract List<City> getAllCities();
	public abstract List<City> getCities(int districtId);
	public abstract List<District> getAllDistricts();
	public abstract List<District> getDistricts(int stateId);
	public abstract List<State> getAllState();
		
	public abstract City saveOrUpdate(City city);
	public abstract District saveOrUpdate(District district);
	public abstract State saveOrUpdate(State state);
	
	public abstract void delete(City city);
	public abstract void delete(District district);
	public abstract void delete(State state);
	
}